﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using WCFMINERP.Contracts.DataContracts;

namespace WCFMINERP.Contracts.InterFaces
{
    [ServiceContract]
    public interface Iorderinfo
    {

        [OperationContract]
        /// <summary>
        /// 根据TechId和状态为1获取订单列表
        /// </summary>
        /// <returns></returns>       
        List<OrderInfo> GetOrderInfoData(int techid);

        /// <summary>
        /// 根据产品ID和岗位提交当前流程
        /// </summary>
        /// <param name="orderProductid"></param>
        /// <param name="techid"></param>
        /// <param name="mess"></param>
        /// <returns></returns>
        [OperationContract]
        OrderInfo CommitTech(string orderProductCode, int techid, int userid, out string mess, out string imgpath);

        /// <summary>
        /// 查询产品
        /// </summary>
        /// <param name="orderProductCode"></param>
        /// <param name="mess"></param>
        /// <returns></returns>
        [OperationContract]
        OrderInfo SercahProduct(string orderProductCode, out string mess);
    }
}
